using System;

namespace Newtonsoft.Json
{
	public class JsonReaderException : Exception
	{
		public int LineNumber
		{
			get;
			private set;
		}

		public int LinePosition
		{
			get;
			private set;
		}

		public JsonReaderException()
		{
		}

		public JsonReaderException(string message) : base(message)
		{
		}

		public JsonReaderException(string message, Exception innerException) : base(message, innerException)
		{
		}

		internal JsonReaderException(string message, Exception innerException, int lineNumber, int linePosition) : base(message, innerException)
		{
			this.LineNumber = lineNumber;
			this.LinePosition = linePosition;
		}
	}
}
